package com.boilermaker.lotterysystem.service;

import com.boilermaker.lotterysystem.controller.param.DrawPrizeParam;
import com.boilermaker.lotterysystem.controller.param.ShowWinningRecordsParam;
import com.boilermaker.lotterysystem.dao.dataobject.WinningRecordDO;
import com.boilermaker.lotterysystem.service.dto.WinningRecordDTO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DrawPrizeService {

    /**
     * 异步保存中奖信息
     */
    void drawPrize(DrawPrizeParam param);

    /**
     * 校验中奖信息有效性
     */
    void checkDrawPrizeParam(DrawPrizeParam param);

    /**
     * 保存中奖者名单
     */
    List<WinningRecordDO> saveWinningRecords(DrawPrizeParam param);

    /**
     * 获取中奖者名单
     */
    List<WinningRecordDTO> getWinningRecords(ShowWinningRecordsParam param);
}
